{template 'web/common/common'}
{template 'web/animal/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/layui.css" />
<style>
    body{
        background: white;
    }
    hr{background: white;}
</style>
<div class="layui-form">
    <table class="layui-table">
        <caption>订单详细信息</caption>
        <colgroup>
            <col width="150">
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>订单编号</th>
            <th>订单总价</th>
            <th>优惠金额</th>
            <th>认养数量</th>
            <th>订单状态</th>
            <th>下单时间</th>
            <th>支付时间</th>
            <th>支付方式</th>
            <th>姓名</th>
            <th>联系方式</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>{$orderData['order_number']}</td>
            <td>{$orderData['total_price']}</td>
            <td>{$orderData['coupon_price']}</td>
            <td>{$orderData['count']}</td>
            <td>
                {if $orderData['status']==1}
                <span class="layui-badge layui-bg-green">已支付</span>
                {else}
                <span class="layui-badge layui-bg-gray">未支付</span>
                {/if}
            </td>
            <td><?php echo date("Y-m-d H:i:s",$orderData['create_time']);?></td>
            <td><?php echo date("Y-m-d H:i:s",$orderData['pay_time']);?></td>
            <td>{$orderData['pay_method']}</td>
            <td>{$orderData['username']}</td>
            <td>{$orderData['phone']}</td>
        </tr>
        </tbody>
    </table>
</div>

<div class="layui-form">
    <table class="layui-table">
        <caption>认养畜牧详情</caption>
        <colgroup>
            <col width="150">
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>ID</th>
            <th>畜牧名称</th>
            <th>封面</th>
            <th>单价</th>
            <th>数量</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>{$animalData['id']}</td>
            <td>{$animalData['animal_name']}</td>
            <td><img src="{$animalData['animal_src']}" alt="" style="width: 100px;height: 100px;"></td>
            <td>{$animalData['price']}</td>
            <td>{$animalData['count']}</td>

        </tr>
        </tbody>
    </table>
</div>